package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.entity.JobEnterprise
import cn.exrick.xboot.base.service.IJobEnterpriseService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class JobEnterpriseController : IEnterpriseUserController.JobEnterprise {

    @Autowired
    private lateinit var iJobEnterpriseService: IJobEnterpriseService

    override fun createOrUpdateJobEnterprise(jobEnterprise: JobEnterprise): Result<Any?>? {

        return iJobEnterpriseService.createOrUpdateJobEnterprise(jobEnterprise)
    }

    override fun removeJobEnterprise(ids: Array<out String>): Result<Any?>? {

        return iJobEnterpriseService.removeJobEnterprise(ids)
    }

    override fun getJobEnterpriseList(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iJobEnterpriseService.getJobEnterpriseList(pageVo)
    }

    override fun getDetailById(id: String?): Result<JobEnterprise>? {

        return iJobEnterpriseService.getDetailById(id)
    }
}